package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class FreightDetail implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * 主键id       db_column: id 
     */	
	private String id;
    /**
     * 主表id       db_column: freight_id
     */
	private String freightId;
    /**
     * 起始金额       db_column: amount_start
     */
	private Double amountStart;
    /**
     * 截止金额       db_column: amount_end
     */
	private Double amountEnd;
    /**
     * 运费金额       db_column: freight_expense
     */
	private Double freightExpense;
    /**
     * 有效标记(默认为1有效 0无效）       db_column: active_flag
     */
	private String activeFlag;
    /**
     * 创建人ID       db_column: create_by
     */
	private String createBy;
    /**
     * 创建人姓名       db_column: create_by_name
     */
	private String createByName;
    /**
     * 创建时间       db_column: create_date
     */
	private java.util.Date createDate;
    /**
     * 修改人ID       db_column: modified_by
     */
	private String modifiedBy;
    /**
     * 修改人姓名       db_column: modified_by_name
     */
	private String modifiedByName;
    /**
     * 修改时间       db_column: modified_date
     */
	private java.util.Date modifiedDate;
	//columns END

	public FreightDetail(){
	}

	public FreightDetail(
		String id
	){
		this.id = id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setFreightId(String value) {
		this.freightId = value;
	}

	public String getFreightId() {
		return this.freightId;
	}
	public void setAmountStart(Double value) {
		this.amountStart = value;
	}

	public Double getAmountStart() {
		return this.amountStart;
	}
	public void setAmountEnd(Double value) {
		this.amountEnd = value;
	}

	public Double getAmountEnd() {
		return this.amountEnd;
	}
	public void setFreightExpense(Double value) {
		this.freightExpense = value;
	}

	public Double getFreightExpense() {
		return this.freightExpense;
	}
	public void setActiveFlag(String value) {
		this.activeFlag = value;
	}

	public String getActiveFlag() {
		return this.activeFlag;
	}
	public void setCreateBy(String value) {
		this.createBy = value;
	}

	public String getCreateBy() {
		return this.createBy;
	}
	public void setCreateByName(String value) {
		this.createByName = value;
	}

	public String getCreateByName() {
		return this.createByName;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setModifiedBy(String value) {
		this.modifiedBy = value;
	}

	public String getModifiedBy() {
		return this.modifiedBy;
	}
	public void setModifiedByName(String value) {
		this.modifiedByName = value;
	}

	public String getModifiedByName() {
		return this.modifiedByName;
	}
	public void setModifiedDate(java.util.Date value) {
		this.modifiedDate = value;
	}
	
	public java.util.Date getModifiedDate() {
		return this.modifiedDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof FreightDetail == false) return false;
		if(this == obj) return true;
		FreightDetail other = (FreightDetail)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

